package com.mxpio.erp.common.sales.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

import com.mxpio.erp.common.jpa.model.BizNoticeLine;


@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_SALES_RB_LINE")
@ApiModel(value="退货通知单行")
public class RejectBillLine extends BizNoticeLine {

    private static final long serialVersionUID = 1L;

    @Column(name = "SPECIFICATION_")
    @ApiModelProperty(value = "规格型号")
    private String specification ;

    @Column(name = "ITEM_NAME_")
    @ApiModelProperty(value = "物料名称")
    private String itemName ;


    @Column(name = "UNIT_")
    @ApiModelProperty(value = "单位")
    private String unit;


    @Column(name = "MEMO_")
    @ApiModelProperty(value = "备注")
    private String memo;

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name="NOTICE_NO_",insertable = false, updatable = false)
    @ApiModelProperty(value = "退货通知单")
    private RejectBill rejectBill;

}
